/*
 * 文 件 名:  Constants.java
 * 版    权:  Huawei Technologies Co., Ltd. Copyright YYYY-YYYY,  All rights reserved
 * 描    述:  VIRest常量定义
 * 修 改 人:  025415
 * 修改时间:  2011-12-5
 * 跟踪单号:  <跟踪单号>
 * 修改单号:  <修改单号>
 * 修改内容:  <修改内容>
 */
package com.huawei.virest.common.constant;

/**
 * VIRest常量定义
 * 
 * @author  025415
 * @version  [版本号, 2011-12-5]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class Constants
{
    // 默认的config文件名
    public static final String DEFAULT_CONFIG = "config";
    
    // 数据传输编码
    public static final String ISO8859_1 = "ISO8859-1";
    
    // 默认的编码
    public static final String DEFAULT_ENCODING = "UTF-8";
    
    // 默认路径参数
    public static final String PATH = "path";
    
    /**
     * 响应消息内容编码
     */
    public static final String CONTENT_ENCODING = "Content-Encoding";
    
    /**
     * 请求消息内容编码
     */
    public static final String ACCEPT_ENCODING = "Accept-Encoding";
    
    // 内容类型
    public static final String CONTENT_TYPE = "application/json";
    
    // gzip
    public static final String GZIP = "gzip";
    
    // 请求URL
    public static final String URL = "URL";
    
    // 请求headers
    public static final String HEADERS = "headers";    
    public static final String HEADER_KEY = "key";    
    public static final String HEADER_VALUE = "value";
    
    // 请求Authorization
    public static final String AUTHORIZATION = "Authorization";
    
    // 请求attachment
    public static final String ATTACHMENT = "attachment";
    
    // 请求method
    public static final String METHOD = "method";
    
    // 请求Body
    public static final String BODY = "body";
    
    // 请求Body
    public static final String FILE = "file";
    
    // HTTP 方法
    public interface HTTPMethod
    {
    	// get
    	String GET = "get";
    
	    // delete
	    String DELETE = "delete";
	    
	    // post
	    String POST = "post";
	    
	    // put
	    String PUT = "put";
    }
    
    /**
     * 符号
     * @author 025079
     *
     */
    public interface Mark
    {
    	String QUESTION_MARK = "?";
    	
    	// address of operator
    	String ADDRESS_OF_OPERATOR = "&";
    	
    	String EQUAL_MARK = "=";
    	
    	String BACKSLASH = "\\";
    	
    	String SLASH = "/";
    	
    	String DOUBLE_SLASH = "//";
    }
    
    /**
     * 报告参数
     * @author 025079
     *
     */
    public interface Report
    {
    	String FILE_PATH = "filePath";
    	
    	String TOTAL_COUNT = "total_count";
    	
    	String SUCCESS_COUNT = "success_count";
    	
    	String RESULT_MAP = "resultMap";
    	
    	String EXPEND_TIME = "expendTime";
    }
    
    public interface CompareResult
    {
    	String RESULT_KEY = "resultKey";
    	
    	String URL = "url";
    	
    	String EXPECT_RESULT = "expectResult";
    	
    	String RESPONSE = "response";
    	
    	String MESSAGE = "msg";
    }
}
